package com.ruoyi.system.mapper;

import java.util.List;
import com.ruoyi.system.domain.ResOrder;

/**
 * 餐馆订单Mapper接口
 * 
 * @author ruoyi
 * @date 2025-06-03
 */
public interface ResOrderMapper 
{
    /**
     * 查询餐馆订单
     * 
     * @param orderId 餐馆订单主键
     * @return 餐馆订单
     */
    public ResOrder selectResOrderByOrderId(Long orderId);

    /**
     * 查询餐馆订单列表
     * 
     * @param resOrder 餐馆订单
     * @return 餐馆订单集合
     */
    public List<ResOrder> selectResOrderList(ResOrder resOrder);

    public List<ResOrder> selectResOrderList1(ResOrder resOrder);

    /**
     * 新增餐馆订单
     * 
     * @param resOrder 餐馆订单
     * @return 结果
     */
    public int insertResOrder(ResOrder resOrder);

    /**
     * 修改餐馆订单
     * 
     * @param resOrder 餐馆订单
     * @return 结果
     */
    public int updateResOrder(ResOrder resOrder);

    /**
     * 删除餐馆订单
     * 
     * @param orderId 餐馆订单主键
     * @return 结果
     */
    public int deleteResOrderByOrderId(Long orderId);

    /**
     * 批量删除餐馆订单
     * 
     * @param orderIds 需要删除的数据主键集合
     * @return 结果
     */
    public int deleteResOrderByOrderIds(Long[] orderIds);

//    查询对应餐厅的订单数
    public int selectResOrderCountByResId(Long resId);
}
